package day1202;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.*;

public class demo2 {

    public static void main(String[] args) {
        JFrame w=new JFrame();
        JPanel p=new JPanel();
        mypanel z=new mypanel();
        w.add(z);
        w.pack();
        w.setSize(330,400);
        w.setVisible(true);
    }


}
class mypanel extends JPanel{
    @Override
    public void paint(Graphics g) {
        super.paint(g);

    }
}